﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Admin/Main.master"
    Title="留言列表" CodeFile="JoinWord.aspx.cs" Inherits="Admin_JoinWord" %>

<%@ Register TagPrefix="uc" TagName="ContentMenu" Src="~/Admin/ContentMenu.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="LeftMenu" runat="Server">
    <uc:ContentMenu ID="ContentMenu" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MidContent" runat="Server">
    <div id="main">
        <asp:Label ID="Msg" runat="server" Text="" CssClass="msg" Visible="False"></asp:Label>
        <asp:GridView ID="LeaveList" runat="server" AllowPaging="True" AutoGenerateColumns="False"
            OnPageIndexChanging="FriendLinkList_PageIndexChanging" DataKeyNames="ID"
            OnRowCancelingEdit="FriendLinkList_RowCancelingEdit" OnRowEditing="FriendLinkList_RowEditing"
            OnRowUpdating="FriendLinkList_RowUpdating" PageSize="11" OnRowDeleting="FriendLinkList_RowDeleting"
            CellPadding="0" CssClass="gv" Width="100%" EmptyDataText="暂无任何留言信息" OnRowDataBound="FriendLinkList_RowDataBound">
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="ID">
                    <ControlStyle CssClass="gvOrderId" />
                </asp:BoundField>
                <asp:TemplateField HeaderText="用户名" ItemStyle-Width="90px">
                    <ItemTemplate>
                        <span title='<%# Eval("UserName") %>'>
                            <%# Eval("UserName")%></span>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="ContactTime" HeaderText="联系时间" ItemStyle-Width="90px"/>
                <asp:TemplateField HeaderText="电话" ItemStyle-Width="90px">
                    <ItemTemplate>
                            <%# Eval("UserStaticPhone")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="手机" ItemStyle-Width="90px">
                    <ItemTemplate>
                            <%# Eval("UserMobilePhone")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="内容">
                    <ItemTemplate>
                        <asp:TextBox ID="TextBox2" runat="server" Enabled="false" Text='<%# Eval("Content") %>'
                            TextMode="MultiLine" Width="330px" Height="100px"></asp:TextBox>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作" ShowHeader="False">
                    <EditItemTemplate>
                        <asp:Button ID="UpdateBt" runat="server" CausesValidation="True" CommandName="Update"
                            Text="更新" />
                        <asp:Button ID="CancelBt" runat="server" CausesValidation="False" CommandName="Cancel"
                            Text="取消" />
                    </EditItemTemplate>
                    <ItemStyle CssClass="gvCommandField" />
                    <ItemTemplate>
                        &nbsp;<asp:Button ID="DelBt" runat="server" CausesValidation="False" CommandName="Delete"
                            Text="删除" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <RowStyle CssClass="gvRow" />
            <EditRowStyle CssClass="gvEditRow" />
            <PagerStyle CssClass="gvPage" />
            <HeaderStyle CssClass="gvHeader" />
            <AlternatingRowStyle CssClass="gvAlternatingRow" />
        </asp:GridView>
    </div>

    <script language="JavaScript" type="text/javascript">
        topMenuThisPage(2); //当前位置顶部菜单标识
        leftMenuThisPage(2, 4); //当前位置左侧菜单标识
        mainMenuThisPage(2); //当前选项卡标识
    </script>

</asp:Content>
